forum

home / developersection / forums / how to enable scrolling in scroll view in objective-c?

How to enable scrolling in scroll view in Objective-C?

zack mathews 2373 15-Feb-2016

I want to enable scrolling in our scroll view. I have created an app using scrollview and set an image. using this code:

UIImageView *imgView = [[UIImageView alloc] initWithImage: [UIImage imageNamed:@"wall-1.jpg"]];
scrollview.scrollEnabled=YES;
[scrollview addSubview:imgView];

In the above code I also set scrollEnabled property to YES using scrollview outlet, but scrolling is not working.
Please suggest me how can I enable the scrolling feature in our application.
Thanks.


Updated on 15-Feb-2016
Can you answer this question?

Answer

1 Answers

Liked By